﻿#region Imports
using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;
using CommonUtilities.Extensions;
#endregion Imports

namespace SeriesEpisodeMapper.Converters
{
    public class ToolTipWhenConverter : IValueConverter
    {
        #region IValueConverter Members
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value.IsNull() ? Visibility.Collapsed : Visibility.Visible;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return null;
        }
        #endregion IValueConverter Members
    }
}
